//3.利用指针变量输出字符数组中的所有字符
#include<stdio.h>

int main()
{
	char str[] = "HELLO WORLD!";
	char *s = str;
	register int i = 0;	
	for(; str[i] != '\0'; i++)
	{
		printf("%c ",*(s+i));
	}
	printf("\n");
	return 0;
}
